drm/vc4: Mark the device as active when enabling runtime PM.
authorEric Anholt <eric@anholt.net>
Mon, 15 May 2017 16:28:36 +0000 (09:28 -0700)
committerpopcornmix <popcornmix@gmail.com>
Tue, 16 May 2017 12:40:38 +0000 (13:40 +0100)
commit9c4d459e96bceffc290c8b86af8af62ae7202ac7
treef185cb16184b573d3a1fd3a685a87f761a5c9310
parent1423ac8bfbfb2a9d092b604c676e7a58a5fa3367
drm/vc4: Mark the device as active when enabling runtime PM.

Failing to do so meant that we got a resume() callback on first use of
the device, so we would leak the bin BO that we allocated during
probe.

Signed-off-by: Eric Anholt <eric@anholt.net>
Fixes: 553c942f8b2c ("drm/vc4: Allow using more than 256MB of CMA memory.")
drivers/gpu/drm/vc4/vc4_v3d.c